package spring.core.aop.aspectj;

import java.lang.reflect.Method;

/**
 * @author 1203056
 * @version Id: AspectContext.java, v 0.1 2021-09-07 11:26 1203056 Exp $
 */
public class AspectContext {

    static final ThreadLocal<Method> currentMethod = new ThreadLocal<Method>();


    static void setCurrentMethod(Method method){
        currentMethod.set(method);
    }

    public static Method currentMethod(){
        return currentMethod.get();
    }


    static void remove(){
        currentMethod.remove();
    }
}
